﻿project(encode_dlm_keypoint_v1 LANGUAGES CXX CUDA)

include_directories(
	${BOOST_INCLUDEDIR}
	${MY_CUDA_INCLUDE_DIRS}
	${MY_TRT_INCLUDE_DIR}
	${MY_YAML_INCLUDE_DIR}
	${MY_CRYPTOPP_INCLUDE_DIR}
)
link_directories(
	${Boost_LIBRARY_DIRS}
	${MY_CUDA_LIBRARY_DIRS}
	${MY_TRT_LIB_DIR}
	${MY_YAML_LIB_DIR}
	${MY_CRYPTOPP_LIB_DIR}
)

set(ENCODE_DLM_KEYPOINT_V1_LIBS 
	${MY_CUDA_LIBS} dxgi
	${MY_TRT_LIBS}
	${MY_YAML_LIB}
	${MY_CRYPTOPP_LIB}
)

file(GLOB_RECURSE CURRENT_HEADERS  *.h *.hpp *.cuh)
file(GLOB CURRENT_SOURCES  *.cpp *.cu)
source_group("Include" FILES ${CURRENT_HEADERS}) 
source_group("Source" FILES ${CURRENT_SOURCES})

add_executable(encode_dlm_keypoint_v1 
	${CURRENT_HEADERS} 
	${CURRENT_SOURCES} 
	"../txr_algo_dlm_keypoint_v1/common/gpu_utility.cpp" 
	"../txr_algo_dlm_keypoint_v1/common/gpu_utility.h")
target_link_libraries(encode_dlm_keypoint_v1 PRIVATE ${ENCODE_DLM_KEYPOINT_V1_LIBS})

set(MY_PATH "PATH=%PATH%" 
	#${Qt5_BIN_DIR}
	#${MY_OPENCV_BIN_DIR} 
	${MY_CRYPTOPP_BIN_DIR} 
	${MY_YAML_BIN_DIR} 
	${MY_TRT_BIN_DIR} 
	${MY_CUDNN_BIN_DIR})
set_property(TARGET encode_dlm_keypoint_v1 PROPERTY VS_DEBUGGER_ENVIRONMENT ${MY_PATH})

install(TARGETS encode_dlm_keypoint_v1 DESTINATION bin)

